Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 4 |
Changes | 0 |
1 | import shlinkApiClient from '../../api/ShlinkApiClient'; |
||
12 | export default function reducer(state = defaultState, action) { |
||
13 | switch (action.type) { |
||
14 | 3 | case SELECT_SERVER: |
|
15 | return action.selectedServer; |
||
16 | 1 | case RESET_SELECTED_SERVER: |
|
17 | return defaultState; |
||
18 | 1 | default: |
|
19 | return state; |
||
20 | 1 | } |
|
21 | } |
||
22 | |||
39 |